package j2EE.bean;
import javax.ejb.EJBObject;
import j2EE.bean.impl.Address;

import java.rmi.RemoteException;

/**
 *  数据访问对象模式
 */

public interface Patient extends EJBObject{
    String getFirstName() throws RemoteException;
    void setFirstName(String firstName) throws RemoteException;

    String getLastName() throws RemoteException;
    void setLastName(String lastName) throws RemoteException;

    Address getAddress() throws RemoteException;
    void setAddress(Address address) throws RemoteException;

    Address getWorkAddress() throws RemoteException;
    void setWorkAddress(Address workAddress) throws RemoteException;
}
